package com.ruoyi.type.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.type.mapper.CaricatureMapper;
import com.ruoyi.type.domain.Caricature;
import com.ruoyi.type.service.ICaricatureService;

/**
 * 漫画Service业务层处理
 * 
 * @author ucu
 * @date 2024-05-04
 */
@Service
public class CaricatureServiceImpl implements ICaricatureService 
{
    @Autowired
    private CaricatureMapper caricatureMapper;

    /**
     * 查询漫画
     * 
     * @param id 漫画主键
     * @return 漫画
     */
    @Override
    public Caricature selectCaricatureById(Long id)
    {
        return caricatureMapper.selectCaricatureById(id);
    }

    /**
     * 查询漫画列表
     * 
     * @param caricature 漫画
     * @return 漫画
     */
    @Override
    public List<Caricature> selectCaricatureList(Caricature caricature)
    {
        return caricatureMapper.selectCaricatureList(caricature);
    }

    /**
     * 新增漫画
     * 
     * @param caricature 漫画
     * @return 结果
     */
    @Override
    public int insertCaricature(Caricature caricature)
    {
        return caricatureMapper.insertCaricature(caricature);
    }

    /**
     * 修改漫画
     * 
     * @param caricature 漫画
     * @return 结果
     */
    @Override
    public int updateCaricature(Caricature caricature)
    {
        return caricatureMapper.updateCaricature(caricature);
    }

    /**
     * 批量删除漫画
     * 
     * @param ids 需要删除的漫画主键
     * @return 结果
     */
    @Override
    public int deleteCaricatureByIds(Long[] ids)
    {
        return caricatureMapper.deleteCaricatureByIds(ids);
    }

    /**
     * 删除漫画信息
     * 
     * @param id 漫画主键
     * @return 结果
     */
    @Override
    public int deleteCaricatureById(Long id)
    {
        return caricatureMapper.deleteCaricatureById(id);
    }
}
